from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy ()


class User (db.Model):
    id = db.Column (db.Integer, primary_key = True, autoincrement = True)
    username = db.Column (db.String (50), unique = True)
    password = db.Column (db.String (120))


class Cate (db.Model):
    id = db.Column (db.Integer, primary_key = True, autoincrement = True)
    name = db.Column (db.String(50), unique = True)